package ink.tiptop.convert;

import ink.tiptop.pojo.Car;
import ink.tiptop.pojo.CarDto;
import ink.tiptop.exception.GearException;
import ink.tiptop.exception.HandWritten;
import org.mapstruct.Mapper;

/**
 * @author zjf
 * @date 2020-08-16 20:59
 * 手写当前全局的类型转换方式,其中可以自定义异常类型的捕获等
 */
@Mapper(uses = HandWritten.class)
public interface Z_ExceptionConvert {

    CarDto carToCarDto(Car car) throws GearException;

}
